﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace weba
{
    public partial class ditua : System.Web.UI.Page
    {
        sjklqDataContext sjk = new sjklqDataContext();
        public string ida;
        protected void Page_Load(object sender, EventArgs e)
        {
           ida = Request.QueryString["id"];
        }
        public string upd(string lx, string ly)
        {
            return "ok";
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            string jd = sjk.People.Where(h => h.id == ida).FirstOrDefault().lx;
            string wd = sjk.People.Where(h => h.id == ida).FirstOrDefault().ly;
            Response.Redirect(Request.Url.ToString()+"&jd="+jd+"&wd="+wd);
        }
    }
}